package com.iot.comprehensive.face.model;

import com.fasterxml.jackson.annotation.JsonBackReference;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.*;
import java.util.List;

/**
 * @Author 朱泽玉
 * @Create 2021/7/1 9:41
 * @Description
 * @Modified By:
 */
@Entity
@Data
@ApiModel("住户信息表")

public class Host {
    @Id
    private Long id;

    private String address;

    // 审批状态：通过、正在进行审批
    private int state = 0;

    private String suggest;

    private String date_time;

    private String img_path;

//    @MapsId
//    @OneToOne(cascade = CascadeType.ALL)
//    @JsonBackReference
//    private Account account;
//
//    @OneToMany(mappedBy = "host")
//    @JsonBackReference
//    private List<AccessForm> accessFormList;
}
